home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 285_02 / files.h < prev    next >
Text File  |  1990-07-08  |  3KB  |  67 lines

  1. /*
  2.     FILES.H headers
  3.     [bison]
  4.     DrH 1/4/88
  5. */
  6. /* File names and variables for bison,
  7.    Copyright (C) 1984 Bob Corbett and Free Software Foundation, Inc.
  8.  
  9. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY.  No author or distributor accepts responsibility to anyone
  11. for the consequences of using it or for whether it serves any
  12. particular purpose or works at all, unless he says so in writing.
  13. Refer to the BISON General Public License for full details.
  14.  
  15. Everyone is granted permission to copy, modify and redistribute BISON,
  16. but only under the conditions described in the BISON General Public
  17. License.  A copy of this license is supposed to have been given to you
  18. along with BISON so you can know your rights and responsibilities.  It
  19. should be in a file named COPYING.  Among other things, the copyright
  20. notice and this notice must be preserved on all copies.
  21.  
  22.  In other words, you are welcome to use, share and improve this program.
  23.  You are forbidden to forbid anyone else to use, share and improve
  24.  what you give them.   Help stamp out software-hoarding!  */
  25.  
  26. /* These two should be pathnames for opening the sample parser files.
  27.    When bison is installed, they should be absolute pathnames.
  28.    XPFILE1 and XPFILE2 normally come from the Makefile.  */
  29.  
  30. /*
  31. #define PFILE   XPFILE
  32. #define PFILE1  XPFILE1
  33. */
  34.                                     /* XPFILE(1) redefined for PC-DOS et.al */
  35. #define PFILE   "SIMPLE  .PRS"      /* Simple parser */
  36. #define PFILE1  "HAIRY   .PRS"      /* Semantic parser */
  37.  
  38. #define FNAMESIZE   13              /* MS/PC-DOS filename conventions (DrH) */
  39.  
  40. extern FILE *finput;   /* read grammar specifications */
  41. extern FILE *foutput;  /* optionally output messages describing the actions taken */
  42. extern FILE *fdefines; /* optionally output #define's for token numbers. */
  43. extern FILE *ftable;   /* output the tables and the parser */
  44. extern FILE *fattrs;   /* if semantic parser, output a .h file that defines YYSTYPE */
  45.                        /* and also contains all the %{ ... %} definitions.  */
  46. extern FILE *fguard;   /* if semantic parser, output yyguard, containing all the guard code */
  47. extern FILE *faction;  /* output all the action code; precise form depends on which parser */
  48. extern FILE *fparser;  /* read the parser to copy into ftable */
  49.  
  50. /* File name specified with -o for the output file, or 0 if no -o.  */
  51. extern char *spec_outfile;
  52.  
  53. extern char *infile;
  54. extern char outfile[];
  55. extern char defsfile[];
  56. extern char tabfile[];
  57. extern char attrsfile[];
  58. extern char guardfile[];
  59. extern char *actfile;
  60.  
  61. /*------------------------- FUNCTION DECLARATIONS --------------------------*/
  62.  
  63. extern  void openfiles( void );
  64. extern  void open_extra_files( void );
  65. extern  void done( int );
  66.  
  67.